# vm 

vic = [{"Fn::Join": ["::", ["staticIp", {"Fn::GetAtt":["vpc.network-404b38ff-ef07-4b21-8772-3ded79603d82", "uuid"]}, "192.168.3.222"]]}],


vm_str = """{{"vm-{vm_uuid}": {{
        "Type": "ZStack::Resource::VmInstance",
        "Properties": {{
            "name": "{vm_name}",
            "instanceOfferingUuid": "{instance_offering_uuid}",
            "imageUuid": "{image_uuid}",
            "dataDiskOfferingUuids": [],
            "systemTags": [{{"Fn::Join": ["::", ["staticIp", {{"Fn::GetAtt":["vpc.network-{vpc_uuid}", "uuid"]}}, "{ip}"]]}}],
            "l3NetworkUuids": [{{"Fn::GetAtt": ["vpc.network-{vpc_uuid}", "uuid"]}}]
        }},
        "DependsOn": ["AddIpRangeByNetworkCidr-{vpc_uuid}"]
    }}
}}"""

# 如果有路由器则需要在DependsOn里面添加 'AttachL3NetworkToVm-edge'